import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/find_book_entity.dart';

FindBookEntity $FindBookEntityFromJson(Map<String, dynamic> json) {
	final FindBookEntity findBookEntity = FindBookEntity();
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		findBookEntity.no = no;
	}
	final String? place = jsonConvert.convert<String>(json['place']);
	if (place != null) {
		findBookEntity.place = place;
	}
	final String? stateValue = jsonConvert.convert<String>(json['state_value']);
	if (stateValue != null) {
		findBookEntity.stateValue = stateValue;
	}
	final String? isbn = jsonConvert.convert<String>(json['isbn']);
	if (isbn != null) {
		findBookEntity.isbn = isbn;
	}
	final String? mainTitle = jsonConvert.convert<String>(json['main_title']);
	if (mainTitle != null) {
		findBookEntity.mainTitle = mainTitle;
	}
	final String? author = jsonConvert.convert<String>(json['author']);
	if (author != null) {
		findBookEntity.author = author;
	}
	final String? searchNo = jsonConvert.convert<String>(json['search_no']);
	if (searchNo != null) {
		findBookEntity.searchNo = searchNo;
	}
	final String? subject = jsonConvert.convert<String>(json['subject']);
	if (subject != null) {
		findBookEntity.subject = subject;
	}
	final String? publisher = jsonConvert.convert<String>(json['publisher']);
	if (publisher != null) {
		findBookEntity.publisher = publisher;
	}
	final String? publishDate = jsonConvert.convert<String>(json['publish_date']);
	if (publishDate != null) {
		findBookEntity.publishDate = publishDate;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		findBookEntity.price = price;
	}
	final String? pages = jsonConvert.convert<String>(json['pages']);
	if (pages != null) {
		findBookEntity.pages = pages;
	}
	final String? rfid = jsonConvert.convert<String>(json['rfid']);
	if (rfid != null) {
		findBookEntity.rfid = rfid;
	}
	final dynamic? summary = jsonConvert.convert<dynamic>(json['summary']);
	if (summary != null) {
		findBookEntity.summary = summary;
	}
	final dynamic? coverBase64 = jsonConvert.convert<dynamic>(json['cover_base64']);
	if (coverBase64 != null) {
		findBookEntity.coverBase64 = coverBase64;
	}
	final dynamic? coverFileExt = jsonConvert.convert<dynamic>(json['cover_file_ext']);
	if (coverFileExt != null) {
		findBookEntity.coverFileExt = coverFileExt;
	}
	final dynamic? readyReturnDate = jsonConvert.convert<dynamic>(json['ready_return_date']);
	if (readyReturnDate != null) {
		findBookEntity.readyReturnDate = readyReturnDate;
	}
	return findBookEntity;
}

Map<String, dynamic> $FindBookEntityToJson(FindBookEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['no'] = entity.no;
	data['place'] = entity.place;
	data['state_value'] = entity.stateValue;
	data['isbn'] = entity.isbn;
	data['title'] = entity.mainTitle;
	data['author'] = entity.author;
	data['search_no'] = entity.searchNo;
	data['subject'] = entity.subject;
	data['publisher'] = entity.publisher;
	data['publish_date'] = entity.publishDate;
	data['price'] = entity.price;
	data['pages'] = entity.pages;
	data['rfid'] = entity.rfid;
	data['summary'] = entity.summary;
	data['cover_base64'] = entity.coverBase64;
	data['cover_file_ext'] = entity.coverFileExt;
	data['ready_return_date'] = entity.readyReturnDate;
	return data;
}